<?php
	/**
	 * 获取登陆用户道具信息
	 */
    class UserProp extends APIBase {
		
		public $tag = "UserProp";
		
        public function before() {
			$this->initMysql();
    		return true;
		}
		
		public function logic() {

			$userprops = $this->mysql->select('player_prop','*',array('uid'=>$this->uid));
			$data =array();
			foreach($userprops as $row){
				unset($row['uid']);
				$data[]=$row;

				}

			$this->returnDataAll($data);
		}
		
       	public function after() {
    		$this->deinitDataRedis();
			$this->deinitMysql();
		}
    }
?>
